Space-Efficient Plane-Sweep Algorithms
نویسندگان
چکیده
We introduce space-efficient plane-sweep algorithms for basic planar geometric problems. It is assumed that the input is in a read-only array of n items and that the available workspace is Θ(s) bits, where lgn ≤ s ≤ n · lg n. In particular, we give an almost-optimal algorithm for finding the closest pair among a set of n points that runs in O(n/s+n·lg s) time. We give a simple algorithm to enumerate the intersections of n line segments that runs in O((n/s) · lg s+ k) time, where k is the number of reported intersections. When the segments are axis-parallel, we give an O(n/s + n · lg s)-time algorithm for counting the intersections, and an algorithm for enumerating the intersections whose running time is O((n/s) · lg s · lg lg s+n · lg s+k). We also present space-efficient algorithms to calculate the measure of axis-parallel rectangles.
منابع مشابه
New plane-sweep algorithms for distance-based join queries in spatial databases
Efficient and effective processing of the distance-based join query (DJQ) is of great importance in spatial databases due to the wide area of applications that may address such queries (mapping, urban planning, transportation planning, resource management, etc.). The most representative and studied DJQs are the K Closest Pairs Query (KCPQ) and εDistance Join Query (εDJQ). These spatial queries ...
متن کاملA Plane Sweep Algorithm for the Voronoi Tessellation of the Sphere
We have extended Fortune’s sweep-line algorithm for the construction Voronoi diagrams in the plane to the surface of a sphere. Although the extension is straightforward, it requires interesting modifications. The main difference between the sweep line algorithms on plane and on the sphere is that that the beach line on the sphere is a closed curve. We have implemented this algorithm and tessell...
متن کاملComputing intersections in a set of line segments: the Bentley-Ottmann algorithm
In these notes, we introduce a powerful technique for solving geometric problems. This technique, called the plane sweep technique, appears in Shamos’ Ph.D. thesis from 1978—which is considered the birthplace of computational geometry—although the concept was known already to geometers. The plane sweep technique gives efficient and reasonably simple algorithms for a large variety of geometric p...
متن کاملComputing the width of a point set in 3-space
We present a new algorithm to solve the 3-dimensional width problem, i.e. to determine two parallel planes of smallest distance such that the region between the two planes contains a given point set. Like the algorithm of Houle and Toussaint, our method has quadratic worstcase complexity but is much faster in practice. In contrast to Houle and Toussaint, we do not use plane sweep or point locat...
متن کاملComputing nice sweeps for polyhedra and polygons
The plane sweep technique is one of the best known paradigms for the design of geometric algorithms [2]. Here an imaginary line sweeps over the plane while computing the property of interest at the moment the sweep line passes the required information needed to compute that property. There are also three-dimensional problems that are solved by space sweep, where a plane sweeps the space. This p...
متن کامل